package cn.HRMS.modle;

import java.util.HashSet;
import java.util.Set;

/**
 * Users entity. @author MyEclipse Persistence Tools
 */

public class Users implements java.io.Serializable {

	// Fields

	private Long userId;
	private Authority authority;
	private String password;
	private Integer sex;
	private String duty;
	private String department;
	private String employeeNumber;
	private String userName;
	private Set leaveRecords = new HashSet(0);
	private Set performanceAndAttendances = new HashSet(0);
	private Set fileses = new HashSet(0);
	private Set salaries = new HashSet(0);

	// Constructors

	/** default constructor */
	public Users() {
	}

	/** minimal constructor */
	public Users(String password, Integer sex, String duty, String department,
			String employeeNumber) {
		this.password = password;
		this.sex = sex;
		this.duty = duty;
		this.department = department;
		this.employeeNumber = employeeNumber;
	}

	/** full constructor */
	public Users(Authority authority, String password, Integer sex,
			String duty, String department, String employeeNumber,
			String userName, Set leaveRecords, Set performanceAndAttendances,
			Set fileses, Set salaries) {
		this.authority = authority;
		this.password = password;
		this.sex = sex;
		this.duty = duty;
		this.department = department;
		this.employeeNumber = employeeNumber;
		this.userName = userName;
		this.leaveRecords = leaveRecords;
		this.performanceAndAttendances = performanceAndAttendances;
		this.fileses = fileses;
		this.salaries = salaries;
	}

	// Property accessors

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Authority getAuthority() {
		return this.authority;
	}

	public void setAuthority(Authority authority) {
		this.authority = authority;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getSex() {
		return this.sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getDuty() {
		return this.duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	public String getDepartment() {
		return this.department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getEmployeeNumber() {
		return this.employeeNumber;
	}

	public void setEmployeeNumber(String employeeNumber) {
		this.employeeNumber = employeeNumber;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Set getLeaveRecords() {
		return this.leaveRecords;
	}

	public void setLeaveRecords(Set leaveRecords) {
		this.leaveRecords = leaveRecords;
	}

	public Set getPerformanceAndAttendances() {
		return this.performanceAndAttendances;
	}

	public void setPerformanceAndAttendances(Set performanceAndAttendances) {
		this.performanceAndAttendances = performanceAndAttendances;
	}

	public Set getFileses() {
		return this.fileses;
	}

	public void setFileses(Set fileses) {
		this.fileses = fileses;
	}

	public Set getSalaries() {
		return this.salaries;
	}

	public void setSalaries(Set salaries) {
		this.salaries = salaries;
	}

}